package cn.leedsoft.luma.controller.vo;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * Created by leeds on 2016/7/5 9:22.
 */
public class UserVo {
    @NotNull(message = "不可为空哦")
    @Range(min = 0)
    private Long id;
    @Length(min = 1, max = 5)
    private String nickname;
    private Date createTime;
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
